-- GENERATED SPELL FOR [Flesh Behemoth] --


function spell0_29190(pUnit, Event) --@Stomp,Self--
pUnit:FullCastSpellOnTarget(53634,pUnit)
pUnit:RegisterEvent('Sorts_29190', 1000, 1)
end

function spell1_29190(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(36706,pUnit)
pUnit:RegisterEvent('Sorts_29190', 10347, 1)
end

function Sorts_29190(pUnit, Event)
local choix_sorts_29190 = math.random(0, 1)
if choix_sorts_29190 == 0 then
pUnit:RegisterEvent('spell0_29190', 1, 1)
end
if choix_sorts_29190 == 1 then
pUnit:RegisterEvent('spell1_29190', 1, 1)
end
end

function mob29190_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29190', math.random(1500, 3000), 1)
end

function mob29190_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29190_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29190_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29190, 1, 'mob29190_Action')
RegisterUnitEvent(29190, 2, 'mob29190_Leave')
RegisterUnitEvent(29190, 3, 'mob29190_Kill')
RegisterUnitEvent(29190, 4, 'mob29190_Die')
